package com.ag.bean;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * TbPlanScope entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_PLAN_SCOPE", schema = "dbo", catalog = "AGDB")
public class TbPlanScope implements java.io.Serializable {

	// Fields

	private String psId;
	private String psName;
	private String psDetail;
	private String a;
	private String b;
	private String c;
	private Set<TbPlan> tbPlans = new HashSet<TbPlan>(0);

	// Constructors

	/** default constructor */
	public TbPlanScope() {
	}

	/** minimal constructor */
	public TbPlanScope(String psId, String psName) {
		this.psId = psId;
		this.psName = psName;
	}

	/** full constructor */
	public TbPlanScope(String psId, String psName, String psDetail, String a,
			String b, String c, Set<TbPlan> tbPlans) {
		this.psId = psId;
		this.psName = psName;
		this.psDetail = psDetail;
		this.a = a;
		this.b = b;
		this.c = c;
		this.tbPlans = tbPlans;
	}

	// Property accessors
	@Id
	@Column(name = "PS_ID", unique = true, nullable = false, length = 10)
	public String getPsId() {
		return this.psId;
	}

	public void setPsId(String psId) {
		this.psId = psId;
	}

	@Column(name = "PS_NAME", nullable = false, length = 20)
	public String getPsName() {
		return this.psName;
	}

	public void setPsName(String psName) {
		this.psName = psName;
	}

	@Column(name = "PS_DETAIL", length = 50)
	public String getPsDetail() {
		return this.psDetail;
	}

	public void setPsDetail(String psDetail) {
		this.psDetail = psDetail;
	}

	@Column(name = "A", length = 50)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 50)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 50)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "tbPlanScope")
	public Set<TbPlan> getTbPlans() {
		return this.tbPlans;
	}

	public void setTbPlans(Set<TbPlan> tbPlans) {
		this.tbPlans = tbPlans;
	}

}